<html>

<head>
 <link href="admin/css/bootstrap.css" rel="stylesheet">

</head>
<body>
<?php
if(isset($_GET['cat'])){
		mysql_connect("localhost","root","");
		mysql_select_db("abade");
		$cat=$_GET['cat'];
		$qry=mysql_query("SELECT * FROM items where category='$cat'");
		while($row=mysql_fetch_object($qry)){
				
			?>
			
	<div class="col-sm-6 col-md-4">
		    <div class="thumbnail">
		      <img src="admin/photo/<?php echo $row->photo;?>" height="200px">
		      <div class="caption">
		        <h3><?php echo $row->name;?></h3>
		        <ul>
		        	<li><?php echo $row->category;?></li>
		        	<li><?php echo $row->size;?></li>
		        	<li><?php echo $row->price;?></li>
		        </ul>
		        <p><a href="#" class="btn btn-primary" role="button">Buy</a> <a href="#" class="btn btn-primary" role="button">Details</a>
		      </div>
		    </div>
		  </div>
	
<?php 	
}
}
?>
</body>
</html>
